@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="${id}">
            <input type="hidden" id="flag" value="${flag}">
            <div class="row">
                <div class="col-sm-3 ">
                    <#input id="createtime" name="账单日期" value="${tMonthbalanceDetail.createtime}"  />
                    <#input id="driver_name" name="司机"  value="${tTrain.driverName}" />
                </div>

                <div class="col-sm-3">
                        <#input id="trainNo" name="车次号" value="${tTrain.trainNo}" />
                        <#input id="carNo" name="车牌号" value="${tTrain.carNo}"  />
                </div>
                <div class="col-sm-3 ">
                    <#input id="tTrainType" name="车次类型" value="${tTrainType}"  />
                    <#input id="phone" name="联系电话"  value="${tTrain.phone}" />
                </div>

                <div class="col-sm-3">
                    <#input id="alipay" name="发货方" value="${tTrain.sendDeptName}" />
                    <#input id="bank" name="操作人" value="${user.name}"  />
                </div>
            </div>
        </div>
        运单明细(以下金额灰色为已结算，<span style="color: #c00;">红色为未结算</span>) </br>
        <#table id="MMTable1"/>
        <div class="row" >
            <div class="col-sm-3" style="text-align: right">
                  待结账目合计（￥）：<span style="color: #c00;" id="djs">0</span>
            </div>
            <div class="col-sm-3" style="text-align: right">
                  已结账目合计（￥）：<span   id="yjs">0</span>
            </div>
            <div class="col-sm-6" style="text-align: left">
                <input id="gz_money" type="text" readonly style="border: none;display: none">
            </div>
        </div>
        <div class="row btn-group-m-t">
            <div class="col-sm-10">
                <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="TMonthbalanceDetailInfoDlg.close()"/>
            </div>
        </div>
    </div>

</div>
</div>
<!--initColumn-->
<script type="text/html" id="tf">
    {{#  if(d.tf_jsqk==0){  }}
    {{d.tf}}
    {{# }  else { }}
    <span style="color: #c00;">{{d.tf}}</span>
    {{# } }}
</script>
<script type="text/html" id="dshk">
    {{#  if(d.dshk_jsqk==0){  }}
    {{d.dshk}}
    {{# }  else { }}
    <span style="color: #c00;">{{d.dshk}}</span>
    {{# } }}
</script>
<script type="text/html" id="zz">
    {{#  if(d.zz_jsqk==0){  }}
    {{d.zz}}
    {{# }  else { }}
     <span style="color: #c00;">{{d.zz}}</span>
    {{# } }}
</script>
<script type="text/html" id="shf">
    <!-- 0表示已结算 -->
    {{#  if(d.shf_jsqk==0){  }}
    {{d.shf}}
    {{# }  else { }}
    <span style="color: #c00;">{{d.shf}}</span>
    {{# } }}
</script>
<script type="text/html" id="byf">
    <!-- 0表示已结算 -->
    {{#  if(d.byf_jsqk==0){  }}
    {{d.byf}}
    {{# }  else { }}
    <span style="color: #c00;">{{d.byf}}</span>
    {{# } }}
</script>
<script type="text/html" id="total">
    <span style="color: #c00;">{{d.total}}</span>
</script>
<!--initColumn-->
<script src="${ctxPath}/static/modular/system/tMonthbalanceDetail/tMonthbalanceDetailList.js"></script>
@}
